package com.ruoyi.train.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 公司培训记录对象 train
 *
 * @author zjh
 * @date 2022-05-06
 */
public class Train extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long trainId;
    private String beginTime;
    private String endTime;
    /**
     * 公司主键
     */

    private Long companyId;
    /**
     * 培训时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "培训时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trainDate;
    /**
     * 培训地点
     */
    @Excel(name = "培训地点")
    private String trainPlace;
    /**
     * 培训人员（公司员工所有人逗号拼接）
     */
    @Excel(name = "培训人员")
    private String trainPerson;
    /**
     * 培训师（默认取法人代表）
     */
    @Excel(name = "培训师")
    private String trainMaster;
    /**
     * 培训内容
     */
    @Excel(name = "培训内容")
    private String trainContent;
    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createBy;
    /**
     * 创建时间
     */

    private Date creatTime;
    /**
     * 更新人
     */

    private String updateBy;
    /**
     * 更新时间
     */

    private Date updateTime;

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Long getTrainId() {
        return trainId;
    }

    public void setTrainId(Long trainId) {
        this.trainId = trainId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Date getTrainDate() {
        return trainDate;
    }

    public void setTrainDate(Date trainDate) {
        this.trainDate = trainDate;
    }

    public String getTrainPlace() {
        return trainPlace;
    }

    public void setTrainPlace(String trainPlace) {
        this.trainPlace = trainPlace;
    }

    public String getTrainPerson() {
        return trainPerson;
    }

    public void setTrainPerson(String trainPerson) {
        this.trainPerson = trainPerson;
    }

    public String getTrainMaster() {
        return trainMaster;
    }

    public void setTrainMaster(String trainMaster) {
        this.trainMaster = trainMaster;
    }

    public String getTrainContent() {
        return trainContent;
    }

    public void setTrainContent(String trainContent) {
        this.trainContent = trainContent;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("trainId", getTrainId())
                .append("companyId", getCompanyId())
                .append("trainDate", getTrainDate())
                .append("trainPlace", getTrainPlace())
                .append("trainPerson", getTrainPerson())
                .append("trainMaster", getTrainMaster())
                .append("trainContent", getTrainContent())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
